<script setup>
import axios from "axios"
import { onMounted, ref } from "vue"
let tat = ref("")
onMounted(() => {
    axios.get("api/ps").then(res => {
        tat.value = res.data.data
    })
})
</script>
<template>
        <div class="ldh" v-for="item in tat">
            <div>订单编号：20231102112201</div>
            <div v-for="item in tat" class="lsl">
                <img :src="item.img" alt="">
                <span>{{ item.name }}</span>
                <div class="song">再次购买</div>
            </div>
        </div>
</template>
<style scoped>
.ldh{
    width: 90%;
    padding: 10px;
    display: flex;
    margin: 20px;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 10px 10px 10px 10px;
}
.lsl {
    display: flex;
    gap: 10px;
}
.song{
      text-align: center;
      padding-top: 50px;
      color: blue;
}
</style>
